import 'package:json_annotation/json_annotation.dart';

part 'admin_login_form_model.g.dart';

@JsonSerializable()
class AdminLoginFormModel {
  final String username, password;
  final String? captchaVerification;
  final int? socialType;
  final String? socialCode;
  final String? socialState;
  final String? clientId;
  final int? agentId;
  final bool? socialCodeValid;

  AdminLoginFormModel({
    required this.username,
    required this.password,
    this.captchaVerification,
    this.socialType,
    this.socialCode,
    this.socialState,
    this.clientId,
    this.agentId,
    this.socialCodeValid,
  });

  factory AdminLoginFormModel.fromJson(Map<String, dynamic> json) =>
      _$AdminLoginFormModelFromJson(json);

  Map<String, dynamic> toJson() => _$AdminLoginFormModelToJson(this);
}
